<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>English Potential Assessment - User Feedback</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" />
    <style>
      body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        background-color: #fff;
        color: #333;
      }

      .dark body {
        background-color: #1a1a1a;
        color: #f5f5f5;
      }

      /* 进度条样式 */
      .progress-container {
        height: 4px;
        width: 100%;
        background-color: #f0f0f0;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
      }

      .progress-bar {
        height: 100%;
        background-color: #007aff;
        width: 37.5%; /* 8步，第三步 */
      }

      .dark .progress-container {
        background-color: #333;
      }

      /* 顶部导航 */
      .top-nav {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .back-btn {
        color: #007aff;
        font-size: 1.25rem;
        cursor: pointer;
      }

      /* 内容区域 */
      .content {
        max-width: 500px;
        margin: 0 auto;
        padding: 1rem;
      }

      /* 用户评价样式 */
      .testimonial-bubble {
        background-color: white;
        border-radius: 20px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 16px;
        position: relative;
      }

      .emotion-icon {
        position: absolute;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 50%;
        right: -8px;
        top: -8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        font-size: 0.8rem;
      }

      .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
      }

      /* 按钮样式 */
      .btn-primary {
        background-color: #4187ff;
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        width: 100%;
        justify-content: center;
        border: none;
      }

      .btn-primary:hover {
        background-color: #3672db;
      }

      .btn-primary:disabled {
        background-color: #c7c7cc;
        cursor: not-allowed;
      }

      /* 适配黑暗模式 */
      .dark .testimonial-bubble {
        background-color: #2d3748;
        border-color: #4a5568;
      }

      .dark .emotion-icon {
        background-color: #2d3748;
      }

      /* 主题切换按钮 */
      .theme-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #007aff;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
      }

      .theme-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
      }

      .nav-progress-container {
        display: flex;
        align-items: center;
        margin-bottom: 40px;
        gap: 15px;
      }

      .back-button {
        width: 30px;
        height: 30px;
        border: none;
        background: none;
        cursor: pointer;
        color: #2b85e4;
        font-size: 20px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .back-button svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
      }

      .progress-bar {
        flex: 1;
        height: 6px;
        background-color: #e0e0e0;
        border-radius: 3px;
      }

      .progress {
        height: 100%;
        width: 16.65%;
        background-color: #2b85e4;
        border-radius: 3px;
      }
    </style>
    <script>
      // 检查深色模式
      function checkDarkMode() {
        if (
          localStorage.getItem('darkMode') === 'true' ||
          (localStorage.getItem('darkMode') === null && window.matchMedia('(prefers-color-scheme: dark)').matches)
        ) {
          document.documentElement.classList.add('dark')
          return true
        }
        return false
      }

      // 切换深色/浅色模式
      function toggleDarkMode() {
        if (document.documentElement.classList.contains('dark')) {
          document.documentElement.classList.remove('dark')
          localStorage.setItem('darkMode', 'false')
          document.getElementById('theme-icon').className = 'fas fa-moon'
        } else {
          document.documentElement.classList.add('dark')
          localStorage.setItem('darkMode', 'true')
          document.getElementById('theme-icon').className = 'fas fa-sun'
        }
      }

      // 当DOM加载完成
      document.addEventListener('DOMContentLoaded', function () {
        const isDark = checkDarkMode()
        document.getElementById('theme-icon').className = isDark ? 'fas fa-sun' : 'fas fa-moon'
      })
    </script>
  </head>
  <body>
    <!-- 主内容区 -->
    <div class="content">
      <div class="nav-progress-container">
        <button class="back-button" onclick="window.location.href='/whatIsLevel.html'">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
            <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" />
          </svg>
        </button>
        <div class="progress-bar">
          <div class="progress"></div>
        </div>
      </div>
      <!-- 页面标题 -->
      <h1 class="text-4xl font-bold text-blue-500 text-center mb-1">10M+ people</h1>
      <p class="text-lg text-gray-700 text-center mb-8">are learning English with fluenty</p>

      <!-- 用户评价 -->
      <div class="space-y-4 mb-8">
        <!-- 用户评价1 -->
        <div class="testimonial-bubble flex items-center">
          <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Owen Sinclair" class="user-avatar mr-3" />
          <div>
            <div class="flex items-center mb-0.5">
              <span class="font-bold text-gray-800 dark:text-gray-200 text-sm">Owen Sinclair, 26</span>
              <img src="https://flagcdn.com/w20/us.png" alt="美国国旗" class="ml-1 h-3" />
            </div>
            <p class="text-gray-700 dark:text-gray-300 text-sm">
              Studying with fluenty is super comfortable. Strongly suggest!
            </p>
          </div>
          <div class="emotion-icon text-yellow-500">
            <i class="fas fa-grin-stars"></i>
          </div>
        </div>

        <!-- 用户评价2 -->
        <div class="testimonial-bubble ml-8">
          <p class="text-gray-700 dark:text-gray-300 text-sm">
            It is customized just for me. It feels like a personal tutor in my pocket.
          </p>
          <div class="emotion-icon text-yellow-500">
            <i class="fas fa-grin-hearts"></i>
          </div>
        </div>

        <!-- 用户评价3 -->
        <div class="testimonial-bubble flex items-center">
          <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="user-avatar mr-3" />
          <div>
            <p class="text-gray-700 dark:text-gray-300 text-sm">
              I grasp difficult concepts effortlessly. A must-have for learners.
            </p>
          </div>
        </div>

        <!-- 评分 -->
        <div class="mt-4 text-center">
          <div class="text-yellow-400 text-2xl mb-1">
            <i class="fas fa-star"></i>
            <i class="fas fa-star"></i>
            <i class="fas fa-star"></i>
            <i class="fas fa-star"></i>
            <i class="fas fa-star"></i>
          </div>
          <div class="flex justify-center items-center">
            <div class="flex -space-x-2">
              <img
                src="https://randomuser.me/api/portraits/women/44.jpg"
                alt="User"
                class="h-6 w-6 rounded-full border-2 border-white dark:border-gray-800"
              />
              <img
                src="https://randomuser.me/api/portraits/men/32.jpg"
                alt="User"
                class="h-6 w-6 rounded-full border-2 border-white dark:border-gray-800"
              />
              <img
                src="https://randomuser.me/api/portraits/women/65.jpg"
                alt="User"
                class="h-6 w-6 rounded-full border-2 border-white dark:border-gray-800"
              />
            </div>
            <span class="text-gray-500 dark:text-gray-400 ml-2 text-xs">from users</span>
          </div>
        </div>
      </div>

      <!-- 继续按钮 -->
      <button id="next-button" class="btn-primary" onclick="window.location.href='/whyDoYou.html'">Continue</button>
    </div>

    <!-- 主题切换按钮 -->
    <div class="theme-toggle" onclick="toggleDarkMode()">
      <i id="theme-icon" class="fas fa-moon"></i>
    </div>
  </body>
</html>
